package clientnode.launcher;
import java.io.IOException;
import org.apache.tuscany.sca.host.embedded.SCADomain;
import org.apache.tuscany.sca.node.SCAClient;
import org.apache.tuscany.sca.node.SCANode;
import org.apache.tuscany.sca.node.SCANodeFactory;


public class ClientLauncher {
	
	public static void main(String[] args) {
		SCADomain scaDomain = SCADomain.newInstance("client.composite");
		
		

		Runnable proxy =  scaDomain.getService(Runnable.class,
				"ClientComponent/Runnable");
		proxy.run();

		try {
			System.out
					.println("client server started (press enter to shutdown)");
			System.in.read();
		} catch (IOException e) {
			e.printStackTrace();
		}
		scaDomain.close();
		System.out.println("client server stopped");
	}
}

